package com.cloud.goldapp.service;

import com.cloud.goldapp.entity.Good;
import com.cloud.goldapp.repository.GoodRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodService {

    @Autowired
    private GoodRepository goodRepository;

    /**
     * 查询商品订单
     */
    public List<Good> findAll() {
        return goodRepository.findAll();
    }

}
